﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Report.Master" AutoEventWireup="true"
    meta:resourcekey="lblStatesticsReport" CodeBehind="StatisticsReport.aspx.cs"
    Inherits="Pap.Web.Modules.Reports.Views.StatisticsReport" %>

<%@ MasterType VirtualPath="~/MasterPages/Report.Master" %>
<asp:Content ContentPlaceHolderID="ReportParamsPlaceHolder" runat="server">
    <ext:Store ID="strProjects" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="ProjectID">
                <Fields>
                    <ext:RecordField Name="ProjectID" />
                    <ext:RecordField Name="ProjectName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:FormLayout runat="server">
        <ext:Anchor Horizontal="95%">
            <ext:DateField runat="server" ID="dtDateLimit" AllowBlank="false" FieldLabel="Date Limit"
                meta:resourcekey="dtDateLimitkey" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:ComboBox runat="server" StoreID="strProjects" ID="cmbProjects" DisplayField="ProjectName"
                ValueField="ProjectID" TypeAhead="true" Editable="true" FieldLabel="Projects"
                meta:resourcekey="cmbProjectsKey" AllowBlank="false" />
        </ext:Anchor>
    </ext:FormLayout>
</asp:Content>
<asp:Content ContentPlaceHolderID="ReportBodyPlaceHolder" runat="server">
    <div class="r-container">
        <header>
            <div class="logo">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Assets/Images/PAPLogo.jpg" />
            </div>
            <div class="title">
                <%= this.Page.Title %>
            </div>
        </header>
        <div style="text-align: center;">
            <div>
                <asp:Label ID="Label1" runat="server"  meta:resourcekey="lblMonthKey" Text="Month" />
                <ext:Label ID="lblMonth" runat="server" />
                <br />
                <asp:Label ID="Label2" runat="server" meta:resourcekey="lblProjectKey" Text="Project" />
                <ext:Label ID="lblProject" runat="server" />
            </div>
            <asp:Chart runat="server" ID="chrtGenderPercent" Palette="BrightPastel" BackColor="WhiteSmoke"
                BorderDashStyle="Solid" BackSecondaryColor="White" BackGradientStyle="TopBottom"
                BorderWidth="2" BorderColor="26, 59, 105" ImageLocation="~/App_data/TempImages/ChartPic_#SEQ(300,3)">
                <Titles>
                    <asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3"
                        Text="Pie Chart" Name="Title1" meta:resourcekey="titleGenderPercent" ForeColor="26, 59, 105">
                    </asp:Title>
                </Titles>
                <Legends>
                    <asp:Legend BackColor="Transparent" Alignment="Center" Docking="Bottom" Font="Trebuchet MS, 8.25pt, style=Bold"
                        IsTextAutoFit="False" Name="Default" LegendStyle="Row">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <Series>
                    <asp:Series Name="Default" ChartType="Pie" BorderColor="180, 26, 59, 105" Color="220, 65, 140, 240">
                    </asp:Series>
                </Series>
                <ChartAreas>
                    <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
                        BackColor="Transparent" ShadowColor="Transparent" BorderWidth="0">
                        <Area3DStyle Rotation="30" />
                        <AxisY LineColor="64, 64, 64, 64">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
            <asp:Chart runat="server" ID="chrtGenderActivity" Palette="BrightPastel" BackColor="WhiteSmoke"
                BorderDashStyle="Solid" BackSecondaryColor="White" BackGradientStyle="TopBottom"
                BorderWidth="2" BorderColor="26, 59, 105" ImageLocation="~/App_data/TempImages/ChartPic_#SEQ(300,3)">
                <Titles>
                    <asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3"
                        Text="Pie Chart" Name="Title1" meta:resourcekey="titleGenderActivity" ForeColor="26, 59, 105">
                    </asp:Title>
                </Titles>
                <Legends>
                    <asp:Legend BackColor="Transparent" Alignment="Center" Docking="Bottom" Font="Trebuchet MS, 8.25pt, style=Bold"
                        IsTextAutoFit="true" Name="Default" LegendStyle="Table">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <Series>
                    <asp:Series Name="Default" ChartType="Pie" BorderColor="180, 26, 59, 105" Color="220, 65, 140, 240">
                    </asp:Series>
                </Series>
                <ChartAreas>
                    <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
                        BackColor="Transparent" ShadowColor="Transparent" BorderWidth="0">
                        <Area3DStyle Rotation="30" />
                        <AxisY LineColor="64, 64, 64, 64">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
            <div style="clear: both;" />
            <asp:Chart runat="server" ID="chrtActivity" Palette="BrightPastel" BackColor="WhiteSmoke"
                BorderDashStyle="Solid" BackSecondaryColor="White" BackGradientStyle="TopBottom"
                BorderWidth="2" BorderColor="26, 59, 105" AntiAliasing="All" ImageLocation="~/App_data/TempImages/ChartPic_#SEQ(300,3)">
                <Titles>
                    <asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3"
                        Text="Pie Chart" Name="Title1" meta:resourcekey="titleActivity" ForeColor="26, 59, 105">
                    </asp:Title>
                </Titles>
                <Legends>
                    <asp:Legend BackColor="Transparent" Alignment="Center" Docking="Bottom" Font="Trebuchet MS, 8.25pt, style=Bold"
                        IsTextAutoFit="False" Name="Default" LegendStyle="Row">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <Series>
                    <asp:Series Name="Default" ChartType="Pie" BorderColor="180, 26, 59, 105" Color="220, 65, 140, 240">
                    </asp:Series>
                </Series>
                <ChartAreas>
                    <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
                        BackColor="Transparent" ShadowColor="Transparent" BorderWidth="0">
                        <Area3DStyle Rotation="30" />
                        <AxisY LineColor="64, 64, 64, 64">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
            <asp:Chart runat="server" ID="chrtLoanStatus" Palette="BrightPastel" BackColor="WhiteSmoke"
                BorderDashStyle="Solid" BackSecondaryColor="White" BackGradientStyle="TopBottom"
                BorderWidth="2" BorderColor="26, 59, 105" ImageLocation="~/App_data/TempImages/ChartPic_#SEQ(300,3)">
                <Titles>
                    <asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3"
                        Text="Pie Chart" Name="Title1" meta:resourcekey="titleLoanStatus" ForeColor="26, 59, 105">
                    </asp:Title>
                </Titles>
                <Legends>
                    <asp:Legend BackColor="Transparent" Alignment="Center" Docking="Bottom" Font="Trebuchet MS, 8.25pt, style=Bold"
                        IsTextAutoFit="False" Name="Default" LegendStyle="Row">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <Series>
                    <asp:Series Name="Default" ChartType="Pie" BorderColor="180, 26, 59, 105" Color="220, 65, 140, 240">
                    </asp:Series>
                </Series>
                <ChartAreas>
                    <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
                        BackColor="Transparent" ShadowColor="Transparent" BorderWidth="0">
                        <Area3DStyle Rotation="30" />
                        <AxisY LineColor="64, 64, 64, 64">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
        </div>
        <footer>
        </footer>
    <script type="text/javascript">
        function OnAfterClick(response, result, el, type, action, extraParams) {
            for (obj in result.extraParamsResponse) {
                var img = Ext.get(obj).dom;
                img.src = result.extraParamsResponse[obj];
            }
        }
    </script>
</asp:Content>
